import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Calendar;

public class testSpringDemo {
    @Test
    public void testSpring(){
        ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        Calendar calendar3 = (Calendar) context.getBean("calendar3");
        System.out.println(calendar3.getTime());
    }
}
